package cn.appsys.dao.appinfo;

import cn.appsys.pojo.AppInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AppInfoMapper {

    List<AppInfo> getAppInfoList(Map<String,Object> params);
    int getAppInfoCount(Map<String,Object> params);

    AppInfo getAppInfo(Integer id);
    int updateAppInfo(AppInfo appInfo);
    int deleteAppLogo(Integer id);
    int addAppInfo(AppInfo appInfo);

    AppInfo getAppInfoByName(String APKName);

    int updateVersionId(@Param(value = "versionId") Integer versionId, @Param(value = "id") Integer appId);

    int deleteAppInfo(Integer id);

    int updateStatus(@Param(value = "status") Integer status, @Param(value = "id") Integer id);
}
